Cross-Origin Resource Sharing
Cross-Origin Resource Sharing
跨來源資源共用
code:javascript
// use cors-anywhere to fetch api data
// origin api url
// fetch api url by cors-anywhere
axios.get(${cors}${url}).then(
(response) => {
const msg = response.data;
document.body.innerHTML = JSON.stringify(msg);
},
(error) => {}
);